switch math for np