little change on example for EC