move text declaration higher in scope