rebuild codes