implement find all and find logic