implemented basic timer functionality