added patched head function to defense slides
changed patch to head function