use electric, auto-pair can't work with template