update draw method