new way to flushing objects