fixed type check