change directorys to directories