implemented power law and double power law