clean up, er model