copying to a new doc
removed emeld and prototype stuff