updated to changes in api