work on plotting