made shallow copy of var_names and var_range so we could correctly reverse them inside drawHeatmap