removed trailing tags