add search matrix