refactorize find_all_by