working on custom connection between segments