removed unused old function mkdir()