improved chaining algorithm