change type checking location