add power law fitting part