add cmp definition