fix coding distance from header.  make state 5 code tighter