indexed geometry - refactoring 1
indexed geometry - refactoring 2