correct threshold for mean