Change attribute name to attribute key