updating code for mac
updating code for mac