you are right. I will change the codes to compare pointers of two surface objects.