removing unnecessary tags