diff --git a/src/main/java/fr/pasteur/ida/zellige/surfaceConstruction/element/os/OS.java b/src/main/java/fr/pasteur/ida/zellige/surfaceConstruction/element/os/OS.java
index d94b4b7fb85600af7cdbe8f2416d42b96ae03fcf..f7cd7594e40d6b0b7eb93906c91bc869efaaca08 100644
--- a/src/main/java/fr/pasteur/ida/zellige/surfaceConstruction/element/os/OS.java
+++ b/src/main/java/fr/pasteur/ida/zellige/surfaceConstruction/element/os/OS.java
@@ -39,8 +39,8 @@ public class OS extends ArrayList< Coordinate >
     public void set( )
     {
         list.add( this.size() );
-        Integer j = occ.get(this.size() );
-        occ.put( this.size(), ( j == null ) ? 1 : j + 1 );
+
+
         /* Not necessary for the program.*/
         this.name = count;
         /*----------------*/
@@ -50,6 +50,23 @@ public class OS extends ArrayList< Coordinate >
 
 
 
+    }
+
+    public void set( int dimension )
+    {
+        list.add( this.size() );
+        Integer j = occ.get(this.size() );
+
+        /* Not necessary for the program.*/
+        this.name = count;
+        /*----------------*/
+        sizeSum = sizeSum + this.size();
+        count++;
+
+        if(dimension == 0)
+        occ.put( this.size(), ( j == null ) ? 1 : j + 1 );
+
+
 
     }