compare rowPointer