fixed bonehead mistake with variable assignment