prelim code