added setGeneric statement for subset