removed debug output
redraw only if necessary