okay i'll pass it across function instead of making it a global variable