simpler index, compatible with header