fix where method to check all methods and not just attributes