delete old content and fix typesetting