think this function should just return TypedPipe. No need to wrap it with the matrix here.