does this rely on indices that don't exist?