remove unnecessary markup