overrode the add and set methods