added check for operating system