write subset