made a few necessary revisions