it did fix it but now i found a new error which said this NameError: name 'time_of_day' is not defined