update draw o routine