get access token function change