updated plotting routines