update 2 function indextent