removing extra markup