added automatic polygon statistics