making generalized light curve