Management of stresses in the rails on railway bridges