use local variable api_version