code cleanup for the clock visualization