fixing problems with method overriding