checking the function.