sorted out the formalism for the power laws