add update method to record