trying to input a save data functionality