update for inheritance