minor improvements to word chains