modified script to add blood and summary plot