use getBasicType within serialise