modify batch retrieve to return the same no. of elements as input tuples