updates made for whitespace mode