buggy version of chaining