removing extra values