line chop + error fix in order