add function to calculate significance