remove unnecessary settimeout