decode: map and struct working decoding