edits to get_token