updated to output masking vectors used to calculate p

Signed-off-by: beccawilson <rebecca.c.wilson@gmail.com>