declare variables as close as first use it.