check return value after printing