modify inputs for api