declare variables at the top