change .fn.chain to .chain