add if bracket for switch statement, remove empty lines after unconnected bubbles