implemented 3D erosion