partitially done the chains