output vector, not mat