save result matrix