updated EC circuit