oops, typo. feeling effects of global vars :(