use do syntax in to_dot