made lightness a parameter