segments and matches