changed where method to find_by