removing index variable