Changes in squarepow function