working on plotting