set next variable to local instead of global