update lineState