read token from constant & refactor