update drawing routine
update