remove tokens which are methods or subs