use keys instead of methods