choose the larger std as group threshold
updated