rename api common method.