refactored checking folder results