switch old code from preambles to hedexams