added try to do the paint thing