The ice is caused from poor insulation in the cielings and poor attic ventilation causing heat buildup in the attic and a "hot roof" which melts snow which runs down the roof to the eaves where it freezes and creates the ice dams. The remedy is to make the roof cold which means elimination of warm air in the attic spaces with better insulation and stopping any leaks of warm air into the space along with addiquate ventilation . A ratio of 1 sqft ventilation for every 150 sqft attic space is the common code requirement.