remove extraneous write space