index responds to bad input