added helper function to fetch last updated entries