more coding for revisions mode