settimeout to setinterval