added line mode