made the EC have working inheritance I think