polygon hierachy working FTW