moved data to factory