how do shocks work