added touppercase on residues