rewrote walk function based on discussion in issue #5
fixed a bug where sseq would allow a bogus index