minor fix missing var statements