removing unnecessary labels