modifyed varying_ac figure