rebuild code