fix misleading sample code