change sqrt to pow