rename map and reduce methods