Changing day to a less global variable