simplify on polygon working