recursively obtainAllFillesIn method