fixed regexes to not take method references