adds residue-specific constraints