alter distribution pvalue siganture to take period kwarg