improve dot generation for cond var