always set pos to flag the existence of line data