clean up
refactor generateDesign, not done!