code after reconstruction