created a protected function to mark a field as updated