add missing var in code snippet