added check for method references using outer scope