binding segments to categories