updates for graycode