using $key for exclude