- add min and max validation to type_check routine