error handling an NB_LINE