relocated clock display function