clean up Deterministic class p2