change variables in each blocks