add unit in core js