rewrite plane geometry