fixing segment 2