remove createDir function