pass data to update.