added codes for access_token