updated picture and chapter2 crash detection