removed useless line of code
trying to remove window.setTimeout call