generating token, now need to reset