If i got it right, global variables are very helpful - you don't have to define in every function the variable, but you can make it global. the question is, is there any problems using them - i was told it's preferable not to use them for they can cause memory problems, but i can't understand why???