decode common structure of BER