add polygon (with a small bug)