move variable definition up