Blue loops during core helium burning as the consequence of moderate convective envelope overshooting in stars of intermediate to high mass