modified from my mac