changed [][] to [ , ] in fit_powerlaw