fixed inheritence issue