use keys instead of values