new function: check_comonotonicity