changed unit comparison case for compound units