updated to api change