set the waiting time as a constant in the code
the `find` used for search, sort and merge is better distributed