correcting the index of max. - min. elements by adding 1, and insert correlation matrix plot here