correct searchMatrix