almost done with paintData