cmp opt, now working \o/