fixed the colors and calling medium values