added small sleep so threads don't walk on each other