rebuild after variable changes