fixing proofs and style