fixing white space glitches