change api method