moving model into factories file
transferred model save to file record