move file to model and services