state Patter    ondraw  part