removed unnecessary flush