added dynamic color changes, added sub colours for red and green