modification for obtaining p-value