implement map via reduce completed