working segments and extraction