added lighten and updated math