shortened program by...

removing opening brackets from otherwise-empty lines and moving hem up
to the end of the previous line.