modified gui.mac