finished setinterval function