combine methods into one endpoint