remove sleep call from API