fixing some inheritence problems