collapse two methods into single method/endpoint.