testing the functions