included plotting routines