adding new color algorithm