tweaked fetching algorithm