set Reduce constructor to public