added part of wincheck solution