modification for mac os