slight modification for windows OS