fixed inheritance and impliments.