and some code of paint