check public type