updated CompareDataFunc for libgee