removing old close tag