testing the funciton