updating data figure