snippet: use adapter var