added printing of unit on new Pavel's equal.ref