errors on redraw after refactoring out vars