added check of OS version