removing unnecessary markup