energy switching scheme