successfully passed array to internal function.