cmp functions is not used