updates to standard deviation