getting timer to work