spacing after while and ifs in the following code is different from normal