fix code excerpt

the excerpt code didn't match the actual code