updates with  means