removed unnecessary sleep