refreshing generated code