fixed inheritence issue, still not working