removed printstatment from type check