(added) - started on the segment connection and update logic