You may be changing the perimeter. Whatever you are trying to do, it is not working. The proof posted by cut-knot is correct. It is not at all rigorous, but it is correct.