improve readability of indices errors