removed unneeded flush (was just a debug attempt)