fixed an errant global :)