add fp for pcail with switch statements