add p value function to keywords