handle the token