cmd not working

execute at @a[scores={witherKills=1..}] if items entity @p weapon.mainhand shield run effect give @s minecraft:saturation 1 1 true

created a scoreboard on wither kills, players with 1 wither kill should get saturation effect whilst holding a shield on the mainhand. but i tested it and it was not working. why?

Continue to help post