catch IndexError Exception