compare the right variable