put data in factory