power function and variable dialog