only print result if it is not `None`