modify the TPS to QPS