keys can be a list of attributes.