fixed virtual paint functions