cfunits, added a supplemental parameter units_arr in certains functions