remove pointless begin block