working on windows mode