added some plotting routines