added test2 function

added test2 function