swtich p and t