modified timer functionality