I have created a function that suppose to drop duplicate geometry from polygon layer and the nsave it as shapefile. The function works but I have realized that the polygons are