implemented BG color, min and max values recorded