removed useless epi calculation, use np.arange to generate fit modes