folder creation code fixed