how to avoid global variables and function definition

hello developers …

i am looking for some way to avoid global variables and function definition i have more than 30 function that already shared
in all modules i make them global to access them from all modules but i am confused about how to change them to local also shared variable change them to local without affecting another modules please write me down code snipped if you know how to implement it using corona ??

with respect
thanks in advance [import]uid: 74537 topic_id: 16989 reply_id: 316989[/import]

if i have modules engine , utils , ball , level , shared variables how can i map (engine with shared variables ) without making global definition of variables in shared module and keep their values where ever they changes ?
[import]uid: 74537 topic_id: 16989 reply_id: 63751[/import]