fixed polish loop