subset only once per needed variable