if (aaa%ndim.ne.3) then return endif create directory