debugging 2 segments