reconstruct output