fixed Subset to read from stdin