modify digging to just collapse elements