build mimic corpus reconstruction function