changed to getPlatform (typo)