add missing var statement