output matrices