changed the way the setTimeout function's interval variable runs