cleaned up some of the time display functions