timer functionality added