checking the output