removing unneeded markup