adjusted method "findByCriteria"