correction rewrite in directory