will print the result after recording the result