working on light curve plotting