override before_updated