check for device platform