added comment for setting last fetched index