tidy up, removed un-needed flush()