remove totalSq now that weve switched to 2 pass solution for no good reason