adding geometric codes