for three samples