input flushing kind of working