change code for osx