save data to data prop