change function for dissipating (use power instead of linear)