added code for checking platform