changed BK output to matrix