adding functions for using w tests