first version of transition regression; potentially a bug with the nodal matching but life is short...