timer working and formatting correctly