using quad's vals as keys