updated demo with attack