Influence of trapped thermal particles on internal kink modes in high temperature tokamaks