changes to ring decoder