now using API_KEY variable