update scratch blocks