residue_by_type