solved up to the point of checking that there is only one of ech polygon