correct use of function mkdir