reinstated orm type check