remove sleep call causes issues