made access_token as parameter as well