set token and id