added usleep for testing