fixing missing var