nil check
no change
disabled clear_pad, extra padrefresh in repaint and 1000 hack