modified dir_dir