added 3d location segmentation