removes a method to sub-class