for multi-term mode