adjust code to run in windows