set variables in Bash before they're used; forward references don't work