changed the signature of add method according to the base class