modified to subtract continuum before fitting lines