add delay for mac