fixing more missing var declarations