added time field to update method