inheritance needs to be debugged