made sure data is saved when running callbacks