fixed a bug with determining the proper time of day greeting.