added line functionality