replace position with token