rearrange compare-bytes a bit