added use of api key