using cmp for comparasion