getting rid of useless tags