debugging polygon creation