reorganized plotting lines