adapting to mac