adjusting to api specifications