fixing printTimer function