make sure to flush