remove ect-specific code