improve performance, get rid of "sleep"