updating data functions.