Got it to callback the array, so now i can use it outside of the function