refactor sizing variables