Why are you removing these blank lines? They seem like good separation for parts of the function.