make update query
chenged base class