modifying matrix to allow optional unknown removal and 2 or 3 digit industry