added calue compare method