started setting up for saving data