out segment only if not empty