replaced braces with semicolumns and end[..];