small change on painting method