minor: move variable declaration