remove elements by, keep elements by