[build] previous and next token for value function