adds variable index position to locate batch insied array