added in bead segmentation