fix reduction