changed to inherited class objects