testing the function