to compare node