file decoding