remove redundant begin/end
whitespace cleanup