analyzing the cause and effect of crashes