add reduce solution for node