last update before trying to set  condition to acess index