set a method to create polygon as private