figure out the right way to repain!