removed sleeps; added asserts