using index() function instead of cell id