used line instead of plot