adds capability for automated body thresholding