add missing var declaration