updating lightcurve