updated utils - now has light curve function