moved positionInResponse to decode.go