added part of the line recognition and updated llips function