tested paintevent