formatted for plotting Parts 4 and 6