condensed code and converted spaces to tabs