fix power calcurate and change variable name