added a timer that i copied and pasted from the web