functions of line in mining