added make directory function