fixed listtokens so that it compiles with no warnings