token variable correction