added reduce tool