made the code Windows-compatible