added alternate paint method