split wanted and unwanted items