creates folders correctly