made element chaining method code more solid