power.c: update variables