add check CMax and CMin method