refactoring of vector and segment shape is done