use global varibles