made heatMap scale based on given input values