use raw data instead angular scoped one, faster
away with unneeded filter
not using range at the moment
iterate only once over data