moving data to model