fixed inheritence problem