add local reduction