repare code