Adjust reduce to not include the path