changed calculation of n in steady state and time to use the n0 vector