fixed use of api key