implemented compare in featureCompare