minified again

redid error checking in pi check