caught double named variable bug, saved hours of time