added settimeout to test bug