refactor housing chart