Code is working properly on my mac