add some paint function