fix getdata by removing extra rangetoarray function