minimize the line