now using PH Datatypes and new typeSize function