Added additional compare function definition for legalid