updated the findToken method to work with ints and syms