[Newbies] problems with scoping