fixing polygon reduction functions