New attempt to solve encoding problem for units