made threshold output a matrix