change api syntax