nest res in find function