rule based segmenter done