added encoding_type