omitItems function

Omit the given items