add paint method