version select to call api function