move variable declarations to the beginning of a block.