changes api_versions from const to method;