create a segment component and collection dependency