updated the active record