in that event the parties shall replace the illegal invalid or unenforceable provision or part thereof with a provision or part thereof that is legal valid and enforceable and that has to the greatest extent possible a similar effect as the illegal invalid or unenforceable provision or part thereof given the contents and purpose of these terms