segment working