removing some unnecessary code in the reduced polygon