pickKeys and omitKeys functions