typo
made showIndex backwarts compatible