tested decoding and clear