build models; delete unused code