update with proper sample means