fixing inheritance errors