partially fixed cyphIndex method