added head function in defense slides cod