renamed data_update to update_data and improved it