catch IndexErrors