reparameterized functions after debugging catastraphe