correct excerpt code