append result during the reducing