move a stray variable declaration to the right spot