replacing last update in getActivity by a range