std calculated in one pass