remove CRs, clear warnings