added line func