trying to fix the bugs with scatplot matrix