subset code