create folders in algorithm