started working on saving data