changed the way to get instance of OperatingSystem