timer, not sure how to implement it
tried tinkering with a timer. added some comments, no substantial changes