edited terminals to not take attached segments with different mode