converted another security API method