working on EC program