add a function for platformtypes