getting output flushed