updated for api change