remove type check