closedir instead of close