fixed timer functionality