use var declaration for next