adding a timer