place the decoding at the right place