fixed problem with reduction