added digits based implementation of getindex for Fock type