creating function tau and testing it