most of the decoding of responses done