getting it wokring for scattered plots