complete some function about line_query