updates for local variance