changed --loop-repeat to Word16