make_chains works to build dictionary