update mkdir function