fixed subset snippet