refactorize find_all_by (2)