implemented inheritance update method(not tested)