wip on regressing values and units to writer