set API right way