rename the method to api