document reconstruction