the code of contrast function