scale match and clustering