sample of wrapper allocation