small bug that caused the end string to always output the date