working on fitting h_z from chains