helper function for render datatypes