paint functions removed