ensure maybeRepaint is there