Hi,
After the paper was written (and submitted) I discovered a previous relevant research having much in common with my paper.
I will have a chance to edit the paper before publishing it.
What is the best practice to deal with this situation? How should I mention the missed and discovered research? Does such situation require a full rewrite of my paper?