add reduce and run