candidate: In some languages , all variables are global , or global by default , while in most modern languages variables have limited scope , generally lexical scope , though global variables are often available by declaring a variable at the top level of the program .