silly mistake regarding the save function