fixing boundary treatment for edges in 3D