changed index.   fixed shell