now saving fitted p0 values to files