remove flipy from the document IF