adjusted something for MacOS