add check that var is set