small optimization in chaining