range check getPlatform()