added line plotting