added missing var as per #8
issue #8