finished PE p2, though could be better...