maybe the variable was fine and I just suck. Quite possible